﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GiveAQuiz.Web.Messenger
{
  /// <summary>
  /// This class provides empty definitions for sending a message
  /// so as to remove the need during development to actually 
  /// have a SMTP server configured.
  /// </summary>
  public class NullMessageSender : IMessageSender
  {
    /// <summary>
    /// Empty method definition that allows us to simply 
    /// eat messages that are attempted to be sent out.
    /// This removes the need during testing or development
    /// to actually use something like a SMTP server.
    /// </summary>
    /// <param name="from">The from address.</param>
    /// <param name="to">The to address.</param>
    /// <param name="subject">The message subject line.</param>
    /// <param name="body">The contents of the message.</param>
    public void SendMessage(string from, string to, string subject, string body)
    {
      // do nothing
    }
  }
}